home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15399 < prev    next >
Encoding:
Text File  |  1996-08-05  |  977 b   |  39 lines

  1. Path: sun001.spd.dsccc.com!jmccarty
  2. From: jmccarty@sun1307.spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: extern func() declaration?
  5. Date: 18 Apr 1996 20:14:22 GMT
  6. Organization: DSC Communications Corporation
  7. Message-ID: <4l67qu$drk@sun001.spd.dsccc.com>
  8. References: <316436C5.413E@micromedia.on.ca>
  9. NNTP-Posting-Host: sun1307.spd.dsccc.com
  10.  
  11. In article <316436C5.413E@micromedia.on.ca>,
  12. Richard Steadman  <rsteadma@micromedia.on.ca> wrote:
  13. )Hello. This is just a minor point, but I couldn't find the
  14. )answer in the FAQ:
  15. )
  16. )What's the difference between
  17. )
  18. )    extern int func(void);
  19. )
  20. )and
  21. )
  22. )    int func(void);
  23. )
  24. )when declaring functions located in another source file? They
  25. )both seem to work alright.
  26. )
  27. )Richard Steadman
  28. )rsteadma@mmltd.com
  29.  
  30.  
  31. Pedantic differences aside, they mean -exactly- the same thing.
  32.  
  33. Mike
  34. -- 
  35. ----
  36. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  37.  
  38. I don't speak for DSC.         <- They make me say that.
  39.